<div class="col-md-8 col-sm-8">
	<div class="panel panel-primary">
		<div class="panel-heading">
		  <h3 class="panel-title">Hồ sơ Đầu Bếp mới nhất</h3>
		</div>
		<div class="panel-body">
			<ul class="hoso-list">
			<?php foreach($pg_tiec as $obj):
				$title = date('d/m/Y',strtotime($obj->ngay_sinh)).'|'.$obj->chieu_cao_m.'m'.$obj->chieu_cao_cm.'|'.$obj->can_nang.'kg|'.$obj->vong1.'-'.$obj->vong2.'-'.$obj->vong3;
			?>
				<li>
					<a class="img-thumbnail" href="<?=site_url('dau-bep/'.remove_accents($obj->ho_ten).'-'.$obj->id)?>" title="<?=$title?>">
					<?php $img = base_url('assets/img/no_image.png');
						if($obj->avatar)
							$img = base_url('uploads/images/full/'.$obj->avatar);
					?>
						<img src="/assets/timthumb.php?w=142&src=<?=$img?>" alt=""/>
					</a>						
					<a class="hoten" href="<?=site_url('dau-bep/'.remove_accents($obj->ho_ten).'-'.$obj->id)?>" title="<?=$obj->ho_ten?>"><?=$obj->ho_ten?></a>					
				</li>
			<?php endforeach;?>
			</ul>
			<a class="more " title="Xem thêm..." href="<?=site_url('dau-bep/pg-tiec')?>">Xem thêm...</a>
		</div>
	</div>
	<div class="panel panel-primary">
		<div class="panel-heading">
		  <h3 class="panel-title">Thông tin tuyển dụng</h3>
		</div>
		<div class="panel-body">
			<table class="table table-dashed" width="100%">
				<thead>
					<th width="50px" class="text-center">Mã tin</th>
					<th width="80px" class="text-center">Nhà tuyển dụng</th>
					<th class="text-center">Tiêu đề</th>
					<th width="140px" class="text-center">Địa điểm</th>
					<th width="80px" class="text-center">Ngày đăng</th>
				</thead>
				<tbody>
				<?php $status = array('Chờ duyệt', 'Đã duyệt', 'Khóa');
					foreach($tin_td as $obj):
					$cls = 'class=';
					if($obj->vip) $cls .= '"success " title="Tin vip"';
					if($obj->hot) $cls .= '"danger " title="Tin hot"';
					$cls .='';
				?>
					<tr <?=$cls?>>
						<td><?=$obj->code?></td>		
						<td class="text-center">
						<?php if($obj->avatar):?>
							<a title="<?=$obj->ten?>">
								<img src="/assets/timthumb.php?w=60&src=<?=base_url('uploads/images/full/'.$obj->avatar)?>" alt="<?=$obj->ten?>"/>
							</a>
						<?php else:?>
							<a title="<?=$obj->ten?>">
								<img src="/assets/timthumb.php?w=60&src=<?=base_url('assets/img/no_logo.png')?>" alt="<?=$obj->ten?>"/>
							</a>
						<?php endif;?>
						</td>
						<td>
							<a href="<?=site_url('tin-tuyen-dung/'.remove_accents($obj->tieu_de).'-'.$obj->id)?>" title="<?=$obj->tieu_de?>"><?=$obj->tieu_de?></a>				
						</td>
						<td><?=$obj->dia_diem?></td>
						<td><?=date('d/m/Y', strtotime($obj->ngay_dang))?></td>
					</tr>	
				<?php endforeach;?>
				</tbody>
			</table>
			<a class="more " title="Xem thêm..." href="<?=site_url('tin-tuyen-dung')?>">Xem thêm...</a>
		</div>
	</div>		
</div>
